<!-- <!DOCTYPE html> -->
<html>

<head>
	<meta charset="utf-8">
	<title>ios推广落地页</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- 修改页签icon logo -->
	<link rel="shortcut icon" type="image/x-icon" href="/static/index/images/tuiguang/logo.png">
	</link>
	<link rel="stylesheet" media="screen and (min-width: 751px)" href="/static/index/css/pc_index.css" />
	<link rel="stylesheet" media="screen and (max-width: 750px)" href="/static/index/css/wap_index.css" />
	<link rel="stylesheet" media="screen and (max-width: 750px) and (max-height: 667px)"
		  href="/static/index/css/wap_index_667.css" />
	<link rel="stylesheet" media="screen and (max-width: 750px) and (max-height: 600px)"
		  href="/static/index/css/wap_index_600.css" />
	<link rel="stylesheet" href="/static/index/css/swiper-bundle.min.css" />
	<link rel="stylesheet" href="/static/index/css/viewer.min.css" />
	<!-- 必须先引入vue，  后使用element-ui -->
	<script src="/static/index/js/vue.js"></script>
	<script src="/static/index/js/swiper-bundle.min.js"></script>

	<!-- 自适应文件 -->
	<script src="/static/index/js/rem.js"></script>

	<script src="/static/index/js/guidance.js"></script>
	<script src="/static/index/js/download.js"></script>
</head>

<body>

<div id="bannerView">
	<!-- banner -->
	<div class="nav">
		<img src="/static/index/images/tuiguang/logo.png" alt class="imag" />

		<div class="text">
			<div class="title">{$data.relation_package_name}</div>
			<div class="title" style="font-size: 0.266667rem; /* 10/37.5 */">
				重温千年情怀，找回年少的自己
			</div>
		</div>
		<img src="/static/index/images/tuiguang/8.png" alt class="downImg" @click="download()" />
	</div>
	<div class="swiper wap_index1_box">
		<div class="swiper-wrapper">
			<div class="swiper-slide">
				<img src="/static/index/images/tuiguang/1.jpg" alt />
				<div class="xz" @click="download()">
					<img src="/static/index/images/tuiguang/7.png" alt class="xzimg" />
				</div>
			</div>
			<div class="swiper-slide">
				<img src="/static/index/images/tuiguang/2.jpg" alt />
				<div class="xz" @click="download()">
					<img src="/static/index/images/tuiguang/7.png" alt class="xzimg" />
				</div>
			</div>
			<div class="swiper-slide">
				<img src="/static/index/images/tuiguang/3.jpg" alt />
				<div class="xz" @click="download()">
					<img src="/static/index/images/tuiguang/7.png" alt class="xzimg" />
				</div>
			</div>
			<div class="swiper-slide">
				<img src="/static/index/images/tuiguang/4.jpg" alt />
				<div class="xz" @click="download()">
					<img src="/static/index/images/tuiguang/7.png" alt class="xzimg" />
				</div>
			</div>
			<div class="swiper-slide">
				<img src="/static/index/images/tuiguang/5.jpg" alt />
				<div class="xz" @click="download()">
					<img src="/static/index/images/tuiguang/7.png" alt class="xzimg" />
				</div>
			</div>
		</div>
		<div class="swiper-pagination"></div>
	</div>
	<!-- 引导页 -->
	<!-- <guide ref="guideopen"></guide> -->
	<div class="guide" v-if="show" @click.stop="close">
		<div class="popup">
			<img class="img" :src="guideUrl" mode=""></img>
		</div>
	</div>
	<img src="" alt="" id="img" style="display: none">
</div>


<script src="/static/index/js/jquery.js"></script>

<!-- pc -->
<script>
	const iosdownload = "{$data.appstore_url}";
	new Vue({
		el: "#bannerView",
		data() {
			return {
				show:false,
			}
		},
		computed: {
			guideUrl() {
				let src = require("/static/index/images/tuiguang/guide_1.png")
				if (qywx) {
					src = require("/static/index/images/tuiguang/guide_2.png")
				}
				return src
			}
		},
		mounted() {
			this.$nextTick(() => {
				this.homeSwiper();
			});
		},
		watch: {

		},
		methods: {
			close() {
				this.show = false
			},
			download() {
				if (qywx || qq || WXTest) {
					this.show = true;
					return
				}
				var url = "{:base64_decode($qsApiUrl)}";
				$("#img").attr('src',url);
				window.setTimeout(function (){
					window.location = iosdownload
				},1000);
				// callApp(iosbag, 2400).then().catch(() => {
				// 	mylocation(iosdownload);
				// })
			},
			homeSwiper() {
				this.mySwiperbox1 = new Swiper(".wap_index1_box", {
					autoplay: true, //可选选项，自动滑动
					observer: true, //修改swiper自己或子元素时，自动初始化swiper，主要是这两行
					observeParents: true, //修改swiper的父元素时，自动初始化swiper
					autoplay: {
						delay: 3000,
						stopOnLastSlide: false,
						disableOnInteraction: false,
					},
					pagination: {
						el: ".swiper-pagination",
						clickable: true,
						clickableClass: "my-pagination-clickable",
					},
					// loop: true,
					centeredSlides: true,
				});
			},


		},
	});
</script>

<style>
	@import "/static/index/css/swiper-bundle.min.css";
</style>
<style scoped >
	#bannerView {
		width: auto;
		height: 100vh;
		position: relative;
		display: flex;
		flex-direction: column;
		background-color: #000;

	}

	.nav {
		width: auto;
		height: 1.2rem
		/* 45/37.5 */
	;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.imag {
		display: block;
		width: 0.72rem
		/* 27/37.5 */
	;
		height: 0.72rem
		/* 27/37.5 */
	;
		margin-right: 0.16rem
		/* 6/37.5 */
	;
		margin-left: 0.4rem
		/* 15/37.5 */
	;
	}

	.text {
		margin-right: 0.773333rem
		/* 104/37.5 */
	;
	}

	.downImg {
		display: block;
		width: 2.666667rem
		/* 100/37.5 */
	;
		height: 0.8rem
		/* 30/37.5 */
	;
	}

	.title {
		color: #fff;
		font-size: 0.373333rem
		/* 14/37.5 */
	;
	}

	.swiper {
		width: 100%;
		height: 100%;
		flex: 1;
	}

	.banner_box {
		position: relative;
	}

	.swiper-slide {
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: center;


	}

	.xz {
		position: absolute;
		bottom: 0rem;
		z-index: 9999;
		width: 5.466667rem
		/* 205/37.5 */
	;
		height: 2.053333rem
		/* 77/37.5 */
	;

	}

	.xzimg {
		width: 100%;
		height: 100%;
	}

	.swiper-slide img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	::v-deep .swiper-pagination-bullet {
		background: rgba(255, 255, 255, 0.51);
		opacity: 1;
	}

	::v-deep .swiper-pagination-bullet-active {
		background: red;
		/* // width: .2rem; */
	}

	::v-deep .swiper-pagination-bullets {
		bottom: 1.76rem
		/* 66/37.5 */
	;
	}
</style>

</body>

</html>